package com.rongc.client.freight.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;

import org.json.JSONObject;


/*
*  判断用户是否实名认证
* */

public class IsAuthApi extends AbsRequest<IsAuthApi.IsAuthParams, JSONObject> {

    public IsAuthApi(IsAuthParams feedbackParams, Listener<JSONObject> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getIsAuthUrl(), feedbackParams, listener, errorListener, JSONObject.class);
    }

    public static class IsAuthParams extends BaseParams {

        public IsAuthParams() {
            put("userId", UniApplication.getInstance().getUserInfo().getUserId());
        }
    }


}
